<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
	<script type="text/javascript">
	var message="哈哈";
      	$(function(){
      		$("#box1").click(function(){
      			$("#box1").css("background","blue");
      		});
      	})
	</script>
	<style type="text/css">
	.box1{
		width: 200px;
		height: 200px;
        background: red url() 0 0 no-repeat;
	}
	.box2{
		width: 200px;
		height: 200px;
        background: yellow url() 0 0 no-repeat;
	}
	</style>
</head>
<body>
	<div class="box1" id="box1" >1</div>
	<div class="box2" id="box2">2</div>
</body>
</html>